package com.adee.java.jdbc.util;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Proxy;

public class JdkProxyUtil {
    public static <T> T getProxy(Class<T> c, InvocationHandler h) {
        return (T) Proxy.newProxyInstance(ClassLoader.getSystemClassLoader(),
                new Class[]{c}, h);
    }
}
